package com.lntu.meeting.controller;

import com.lntu.meeting.pojo.User;
import com.lntu.meeting.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Login {

    @Autowired
    private UserService userService;
    @RequestMapping("/login")
    public String login(@RequestBody User user){

        String res = userService.getUser(user);
        return res;

    }
}
